package company.kedaxunfei;

import java.util.Scanner;

public class Ke4 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        char[] chars = s.toCharArray();
        StringBuffer sb = new StringBuffer();
        for (char c : chars) {
            if (c == '-' && sb.length() == 0)
                sb.append(c);
            if (c == '0' && sb.length() == 0)
                continue;
            if (c >= '0' && c <= '9')
                sb.append(c);
        }
        System.out.println(sb.toString());
    }
}
